<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index2.css">
    <style>
         html, body {
            background-image: url(https://p.qqan.com/up/2020-10/16030984182548078.jpg) ;
        } 
        .next {
            margin: 0 0;
        }
        .next a {
            color: black;
        }
        .top-nav {
            background-color: rgba(100, 148, 237, 0.283);
        }
        .box {
            width: 300px;
            height: 200px;
            margin-top: 50px;
        }
        .box1 {
            border: 10px red dashed;
            background-color: beige;
        }
        .box2 {
            border: 10px red dashed;
            background-color:rgba(178, 97, 70, 0.492);
        }
        .box3 {
            border: 10px red dashed;
            background-color: #555;
            opacity: 0.5;
        }
        .box4 {
            border: 10px red dashed;
            background-color:hsl(50deg, 80%, 30%) ;
        }
    </style>
</head>
<body>
    <div class="top-nav">
        <ul>
            <li><a href="./css样式一.html">css样式一</a></li>
            <li><a href="./盒子模型.html">选择器与盒子</a></li>
            <li><a href="./天龙八部.html">格式化文本</a></li>
            <li><a href="./奖状1.html">制作奖状</a></li>
        </ul>
    <div class="box box1">有名颜色</div>
    <div class="box box2">rgb颜色</div>
    <div class="box box3">hex颜色与不透明度</div>
    <div class="box box4">hsl颜色</div>
    <hr>
    <p>这是关键源代码</p>
    <pre>
        box {
            width: 300px;
            height: 200px;
            margin-bottom: 50px;
        }
        .box1 {
            border: 10px red dashed;
            background-color: beige;
        }
        .box2 {
            border: 10px red dashed;
            background-color:rgba(178, 97, 70, 0.492);
        }
        .box3 {
            border: 10px red dashed;
            background-color: #555;
            opacity: 0.5;
        }
        .box4 {
            border: 10px red dashed;
            background-color:hsl(50deg, 80%, 30%) ;
        }
    </pre>
    <div class="next"><a href="./渐变背景.html">点我去渐变练习</a></div>
</body>
</html>